#include "app_runner.h"
#include  <stdio.h>
#include  <string.h>
#include  "ota_version.h"
#include  "daemon_runner.h"


int main(int argc, char const *argv[])
{
    if(argc == 0) 
    {
        printf("请输入参数(app|daemon|ota|update|version)");
    }
    if(strcmp(argv[1], "app") == 0)
    {
        app_runner_start();
    }
    else if(strcmp(argv[1], "daemon") == 0)
    {
        daemon_runner();
    }
    else if(strcmp(argv[1], "ota") == 0)
    {
          ota_version_check_update_daily();
    }
    else if(strcmp(argv[1], "update") == 0)
    {
        ota_version_check_update();
    }else if(strcmp(argv[1], "version") == 0)
    {
        ota_version_print();
    }
    return 0;
}
